package com.cty.C_SortAlgorithms.H_RadixSort;

import com.cty.F_common.DataItem;

/**
 * @Auther: cty
 * @Date: 2020/6/18 18:09
 * @Description: 双端链表实现队列
 * @version: 1.0
 */
public class QueueChain {
    private FirstLastList list;

    public QueueChain(){
        list = new FirstLastList();
    }

    public boolean isEmpty(){
        return list.isEmpty();
    }

    public void insert(DataItem item){
        list.insertLast(item);
    }

    public DataItem remove(){
        return list.deleteFirst();
    }

}  // end QueueChain{}
